package com.spic.business.alarm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 告警主表
 */
@Data
public class AlarmModel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 告警类型
     */
    private String alarmType;
    /**
     * 数值 防汛是雨量、风害是风速、爆区是作业
     */
    private String alarmValue;
    /**
     * 告警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date alarmDate;
    /**
     * 设备名称
     */
    private List<FloodAlarm> floodAlarmList;
}
